// 访问器的set和get
{
  class User {
    private _name: string
    constructor(name: string) {
      this._name = name
    }
    public get name(): string {
      return this._name + '      get'
    }
    public set name(name: string) {
      this._name = name
    }
  }
  const user = new User('zrf')
  user.name = 'updatedzrf'
  console.log(user.name);

}